<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://hyperf.wiki
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

use App\Common\Log\StdoutLoggerFactory;
use Hyperf\Contract\StdoutLoggerInterface;

$dependencies = [];

$appEnv = env('APP_ENV', 'prod');
// 所有情况下输出日志到日志文件
if ($appEnv != 'local') {
    $dependencies[StdoutLoggerInterface::class] = StdoutLoggerFactory::class;
}


return $dependencies;
